package com.ailk.kbi.kbiwarden.wsi.service;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.soap.SOAPBinding;

public class NotifyClient implements Notify {
	public final static QName SERVICE_NAME = new QName("http://wsi.bi.ailk.com/", "NotifyService");
	public final static QName PORT_NAME = new QName("http://wsi.bi.ailk.com/", "NotifyPort");

	private Notify notify;

	public NotifyClient(String endpointAddress){
		Service service = Service.create(SERVICE_NAME);
		service.addPort(PORT_NAME, SOAPBinding.SOAP11HTTP_BINDING, endpointAddress);
		notify = service.getPort(Notify.class);
	}

	public String createComplete(String sessionId) {
		return notify.createComplete(sessionId);
	}

}
